package com.leo.foodmaster.admin.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.leo.foodmaster.commons.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author ：Leo
 * @since ：2021-07-01 16:55
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel(value="User对象", description="用户表")
public class SysUser extends BaseEntity implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "性别：‘F’（女）‘M’（男） 默认‘U’（未知）")
    private String sex;

    @ApiModelProperty(value = "上一次登录时间")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "机构Id：没有加入机构为0")
    private Long organId;

    @ApiModelProperty(value = "部门Id：没有加入部门为0")
    private Long deptId;

    @ApiModelProperty(value = "逻辑删除标志：默认为0（正常）1（删除）")
    private Boolean delFlag;

    @ApiModelProperty(value = "账号是否可用：默认为0（可用）1（禁用）")
    private String status;

    @ApiModelProperty(value = "是否过期：默认为0（没有过期）1（过期）")
    private Boolean accountNonExpired;

    @ApiModelProperty(value = "账号是否锁定：默认为0（没有锁定）1（锁定）")
    private Boolean accountNonLocked;

    @ApiModelProperty(value = "证书（密码）是否过期：默认为1（没有过期）0（过期）")
    private Boolean credentialsNonExpired;

    @ApiModelProperty(value = "备注")
    private String remark;
}
